package co.salehi.validation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Constraint(validatedBy = PasswordMatchnValidator.class)
public @interface CheckPasswords {
	String message() default "Passwords don\'t match";

	Class<?>[] groups() default {};

	Class<?>[] payload() default {};
}
